#ifndef FALLBACK_SCHEDULER_H
#define FALLBACK_SCHEDULER_H

#include "abstract_scheduler.h"

namespace scheduler
{
/**
 * @brief:  备选，结束条件：一个成功 or 全部失败
 * @author: sherlock_lht
 */
class FallbackScheduler: public AbstractScheduler
{
public:
    explicit FallbackScheduler(const std::string &name);
    ~FallbackScheduler() override;

    [[deprecated("fallback scheduler cannot set task")]] bool setTask(const task::AbstractTaskConstPtr &task) override;

    [[deprecated("fallback scheduler cannot set task")]] bool setScheduler(const AbstractSchedulerConstPtr &scheduler) override;
};
}


#endif //FALLBACK_SCHEDULER_H
